package com.zzyl.nursing.domain.dto;

import com.zzyl.common.core.domain.dto.PageQueryDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@ApiModel("设备数据分页查询请求模型")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DeviceDataPageQueryDto extends PageQueryDto {
    
    @ApiModelProperty(value = "设备名称", required = false)
    private String deviceName;
    
    @ApiModelProperty(value = "功能ID", required = false)
    private String functionId;
    
    @ApiModelProperty(value = "开始时间", required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    
    @ApiModelProperty(value = "结束时间", required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}